﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SyndicateDAO.DAO;
using SyndicateDAO.DatabaseObject;

namespace SyndicateBusiness.Classes
{
    public class CouponBL
    {
        private CouponDAO CouponDAO = new CouponDAO();

        #region DAO
        
        public IQueryable<coupon> SelectAllByDrawId(int dId)
        {
            return CouponDAO.SelectAllByDrawId(dId);
        }
        private bool InsertCoupon(coupon c)
        {
            return CouponDAO.InsertCoupon(c);
        }
        private bool UpdateCoupon()
        {
            return CouponDAO.UpdateCoupon();
        }
        private bool DeleteCoupon(coupon c)
        {
            return CouponDAO.DeleteCoupon(c);
        }
        #endregion
    }
}
